
import { PROJECT_NAME } from '@/config'
const setPageTitle = (title) => {
  if (title) {
    return `${title} - ${PROJECT_NAME}`
  }
  return ProjectTitle
}

const isWechatEnv = () => {
  const isWeChat = navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1;
  return isWeChat
}

export default {
  setPageTitle,
  isWechatEnv
}